From 27b7f4e64fd0af882e6d0624339d5da32ab38078 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Tue, 26 Aug 2008 20:53:21 +0000 Subject: [PATCH] wfff: Replace invalid waypoint allocation. --- gpsbabel/wfff_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/wfff_xml.c b/gpsbabel/wfff_xml.c index 4259cdca4..ffa4bb6ac 100644 --- a/gpsbabel/wfff_xml.c +++ b/gpsbabel/wfff_xml.c @@ -192,7 +192,7 @@ void wfff_e(const char *args, const char **unused) if ((ap_hdop>=1)&&(ap_hdop<50)) // Discard invalid GPS fix { - wpt_tmp = xcalloc(sizeof(*wpt_tmp), 1); + wpt_tmp = waypt_new(); if ( snmac ) { wpt_tmp->shortname = xstrdup(ap_mac); -- 2.30.2